﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataBase.Attributes
{
    public class DataBaseDataType : Attribute
    {
        public DataBaseDataType(System.Data.SqlDbType SqlDbType)
        {

        }

        /// <summary>
        /// 数据库，数据类型.
        /// </summary>
        public System.Data.SqlDbType SqlDbType { get; set; }
        /// <summary>
        /// 最大长度
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        /// 小数位
        /// </summary>
        public int DecimalPlace { get; set; }

        /// <summary>
        /// 长度 max varchar(max)
        /// </summary>
        public bool IsMax { get; set; }

        [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
        public bool Match(object obj)
        {
            return base.Match(obj);
        }

    }
}
